#version 330 core

in vec2 tex_coords;
out vec4 frag_color;

uniform sampler2D text;
uniform vec3 text_color;

void main() {
  float sampled = texture(text, tex_coords).r;
  frag_color = vec4(text_color, sampled);
}